home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
convert
/
pcxdxb11
/
pcxdxb.doc
< prev
next >
Wrap
Text File
|
1990-11-22
|
9KB
|
222 lines
** PCXDXB V1.1: Paintbrush to AutoCAD Translation Utility **
Copyright 1990 by Robert L. Church
All Rights Reserved
======================
DISCLAIMER - AGREEMENT
======================
Users of PCXDXB must accept this disclaimer of warranty:
"This software is supplied on an AS IS basis. The
author, Robert L. Church, specifically disclaims ANY
warranty, expressed or implied, as to merchantability or
fitness for any particular purpose of the software.
Under no circumstances will Robert L. Church be liable
for any direct, consequential, special, indirect, or
other damages including, but not limited to, loss of
data, profit, or the use of the software arising from
the distribution, use, or misuse of the software. YOU
USE THE SOFTWARE AT YOUR OWN RISK. BY USING THE SOFT
WARE, YOU AGREE TO THE TERMS OF USAGE SET FORTH IN THIS
DISCLAIMER."
======
NOTICE
======
These programs are not in any way connected with or supported by
CompuServe, Inc., Autodesk, Inc., or Z-Soft Corp.
==========
TRADEMARKS
==========
CompuServe is a trademark of CompuServe, Inc.
AutoCAD is a trademark of AutoDesk, Inc.
Paintbrush is a trademark of Z-Soft Corp.
================
SHAREWARE NOTICE
================
This program is being released by the author as shareware.
It is NOT public domain! You may copy and use the program
freely. You may distribute it to whomever you like but:
1. Do NOT distribute modified versions.
2. Do NOT remove the copyright notice.
3. ALWAYS distribute with the documentation.
If you feel that these program are useful, please register your
copy by sending $20.00 to:
Robert L. Church
9738 Commerce Ave.
Tujunga, CA, 91042
Registered users will receive a disk containing the latest version
of the program, a documentation file formatted for printing and
notification of any bug fixes, updates, new products, etc.
=====
FILES
=====
The distribution disk contains the following files:
PCXDXB.DOC This File
PCXDXB.EXE PCXDXB Program
============
INTRODUCTION
============
This package contains the file translation utility PCXDXB.EXE
which translates 2 color .PCX files into .DXB files which can
be imported into AutoCAD using the DXBIN command. The image
produced consists of a crosshatch of horizontal and vertical
lines which trace horizontal and vertical lines of black pixels
in the original .PCX file. This produces an intersection at
each 'ON' pixel.
=================
TRANSLATING FILES
=================
Translate the .PCX file to .DXB format by typing:
PCXDXB Filename
at the DOS prompt where Filename is the name of the .PCX file to
be translated. It may include a path to the file. The program will
produce a .DXB file with the same name as the original. For instance;
PCXDXB \ACAD\MYPIC
Will read the file MYPIC.PCX on the \ACAD directory and produce
the file MYPIC.DXB on the \ACAD directory. If \ACAD\MYPIC.DXB
already exists, you will receive a message asking if you want
to overwrite the existing file. Answer 'Y' to overwrite. Any other
key cancels the translation.
Progress during the translation is displayed on the screen as a
percent of input file processed.
====================
LOADING THE DXB FILE
====================
Get into AutoCAD and open a new drawing. At the prompt, issue a DXBIN
command. When prompted for the filename, enter the name of the .DXB
file just created.
The image created puts the pixel intersections on 2 inch centers,
so the scale of the drawing is very large. This is not a problem
since the image can be scaled after it has been input to AutoCAD.
If you are zoomed in on a relatively small piece of the drawing,
like (0,0 36,24), you may not see anything happen during the DXBIN
command. It's all happening off-screen. When the command is done,
do a ZOOM EXTENTS to see the entire image.
If you know the size of the .PCX image, do a ZOOM WINDOW before
the DXBIN command. When prompted for the window coordinates, use
0,0 for the lower left corner. For the upper right corner use twice
the size of the .PCX image in pixels plus a little. This will allow
you to see the file as it is input on the screen. For instance, if
the image was 640 x 480, use 0,0 and 1300,1000 (1280,960 plus a little).
=====
HINTS
=====
The drawings created using the DXBIN command tend to be large and
clumsy, especially if the .PCX file was large or contained a lot of
'texture'. The best way to use the image is as a basis for tracing.
The DXBIN command draws lines on the current layer. Once the command
is complete, switch to another layer and color and 'trace' the
important features. If you use INTersection OSnap or set the SNAP
to 2 inches, it is very easy to grab the intersections where the
black pixels were.
Once the image has been traced, you can turn the trace layer off
and erase the underlying image. This greatly reduces the size of
the drawing and the time for REGEN/REDRAW.
Tracing seems to work best using PLINEs. Trace each feature of the
image using a single PLINE. Then you can use a PEDIT to fit a curve
to the points and end up with a pretty smooth outline without much
trouble. When tracing, it is best to start a new PLINE when the
nature of the outline changes. For instance, if the image has a
curved side and a straight side, use 2 PLINES. This prevents the
straight side from interfering with the PEDIT curve fit. A little
trial and error will help you find the best methods.
If you are going to scan an image for input to PCXDXB, it is usually
better to use the lowest resolution possible. This will result in
much smaller and more easily managed drawing files since the number
of pixels is greatly reduced. A 100 dpi scan is only 1/9th the size
of a 300 dpi scan. The lower resolution will still provide adequate
information for tracing most images.
As mentioned earlier, the program only converts 2-color .PCX files.
If you have multi-colored .PCX files, they first need to be converted
to 2-color. If you have .GIF files, they can be converted using the
GIFPCX converter available on the PICS forum. This always produces
a 2-color image. If you have a converter that will translate colored
.PCX files to .GIF files, GIFPCX could then be used to translate back
to 2-color .PCX for input to PCXDXB.
==============
ERROR MESSAGES
==============
The program provide error messages to handle most foreseeable
problems. These cover file not found, disk full, disk read/write,
and other common errors. The messages are self-explanatory. Other
errors will produce an "Unknown Error in Input File" message.
This is probably caused by an input file of the wrong format
but may be due to other errors.
=================
TECHNICAL SUPPORT
=================
Registered users may obtain technical support by contacting
me on CompuServe at 73207,3242 or writing to me at the following
address:
Robert L. Church
9738 Commerce Ave.
Tujunga, CA, 91042
I will respond as soon as possible to such requests. Support for
non-registered users will be provided as time permits. Verifiable
bugs will be corrected as quickly as possible. The latest version
of the program will be made available on Compuserve when it is
released.
Bug reports, comments, suggestions, etc. are appreciated and may
also be directed to these locations.
================
REVISION HISTORY
================
Version Date Revision Notes
---------------------------------------------------------------------
V1.0 11/15/90 Initial Release.
---------------------------------------------------------------------
V1.1 11/22/90 Improved Progress Display.
Added Overwrite (Y/N)? message if output
file already exists.
Improved handling of non-existent input
files and files of the wrong format.
Modified and expanded documentation.
---------------------------------------------------------------------